package com.maiji.cloud.service;

import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.entities.shopingmall.CapitalMain;
import com.maiji.cloud.entities.shopingmall.DistributionComRuleLog;
import com.maiji.cloud.entities.shopingmall.DistributionLogEntity;
import com.maiji.cloud.request.ReqMetaData;
import com.maiji.cloud.response.BaseDataResDto;
import com.maiji.cloud.response.BaseMetaResDto;
import com.maiji.cloud.response.BaseResDto;

import java.util.Date;
import java.util.List;

public interface DistributionLogService extends IService<DistributionLogEntity> {

    BaseMetaResDto<List<DistributionLogEntity>> findAllDistributionLogs (String userId, String nickName, String orderNo, List<Date> inTimes, ReqMetaData metaData);

    BaseDataResDto<CapitalMain> findCapitalMainByUserId(String userId);

    BaseDataResDto<DistributionComRuleLog> findDistributionComRule();

    BaseDataResDto<List<DistributionComRuleLog>> findAllDistributionComRuleLogs(List<Date> editDates);

    BaseResDto editDistributionComRule(DistributionComRuleLog ruleLog);
}
